home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / analogjoystick / readme < prev    next >
Text File  |  1980-01-07  |  3KB  |  62 lines

  1.  
  2.    Welcome to the world of analog joysticks.
  3.  
  4.    You may well wonder what would prompt someone to write a bunch of code
  5. and design some hardware to do analog joystick input.  Someone had to.
  6. I have seen many other individuals do wonderful things in the "freeware"
  7. arena, and decided to do something too.  This was a niche I saw that
  8. I thought that I could contribute to.  It also really aggravated me
  9. to know that my Amiga could do this type of joystick support, yet few
  10. are willing to put the time and effort into any commercial application.
  11. This after what, almost four years?
  12.  
  13.    Well, here it is, free, ready for the taking.  So get to it!  I hope
  14. to see it used in everything it makes sense for.  It's small, it's easy,
  15. and it's done already.  There are no more excuses.
  16.  
  17.    Included in this distribution is a driver (part assembly, part 'C',)
  18. a header file for the 'C' code that calls the driver, and an example
  19. program that uses the driver.  All this code appeared in the July 1989
  20. issue of Amazing Computing (sporting the freely redistributable not
  21. for profit, free to use in commercial application banner).  Distribution
  22. on Fish Disks was specifically double-checked with PIM publications, but
  23. the intent has always been for widespread distribution and use.
  24.  
  25.  
  26.  
  27.                                       Enjoy,
  28.                                       Dave Kinzer
  29.  
  30.  
  31.  
  32.  
  33.    For information on how to build an IBM/Apple joystick adapter, you 
  34. should consult the July 1989 issue of Amazing Computing (Vol. 4 No. 7).
  35. The theory of operation and an explanation of the driver (as well as
  36. listings) are there also.
  37.  
  38.    Part of the second paragraph below was omitted in the printing of
  39. the magazine (at the first page break).  Far be it from me to complain
  40. (I don't know the first thing about publishing,) but it reads better
  41. as written:
  42.  
  43.  
  44.    For each axis, the current flowing through the variable resistor
  45. (in the joystick) from +5 Volts reaches the two resistors in the adapter.
  46. Since the voltage on the op-amp output and the voltage on the Amiga input
  47. are the same, the voltage across the resistors are the same.  This results
  48. in the current always being split in a constant ratio.  The ratio of the
  49. resistor values control the ratio of the current split.  By selecting the
  50. appropriate resistances, the current into the computer is reduced to the
  51. amount that would flow if an ideal joystick were attached.
  52.  
  53.    Selecting the resistance values for the design requires evaluating a
  54. trade-off.   A higher resistance reduces the undesirable effects of the
  55. input offset voltage of the op-amp (in this configuration, this means that
  56. the voltage on the output is not exactly as what is on the positive input).
  57. Too high a resistance will result in the voltage not rising fast enough in
  58. the minimum resistance joystick position.
  59.  
  60.  
  61.  
  62.